From 33c9464dad0979b05323e4d508875ad47e1c425f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 22:57:55 +0000 Subject: Refactor Analytics and Head components --- src/pages/[...page].astro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pages/[...page].astro') diff --git a/src/pages/[...page].astro b/src/pages/[...page].astro index 23a5d51..2a6f5cc 100644 --- a/src/pages/[...page].astro +++ b/src/pages/[...page].astro @@ -5,6 +5,8 @@ import Layout from "../layouts/BaseLayout.astro"; import Pagination from "../components/Pagination.astro"; import PostSummary from "../components/PostSummary.astro"; +type Props = InferGetStaticPropsType; + export const getStaticPaths = (async ({ paginate }) => { const posts = await getCollection("blog"); posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime()); @@ -14,8 +16,6 @@ export const getStaticPaths = (async ({ paginate }) => { }); }) satisfies GetStaticPaths; -type Props = InferGetStaticPropsType; - const { page } = Astro.props; --- @@ -25,6 +25,6 @@ const { page } = Astro.props;
- +
-- cgit v1.2.3